const express = require('express')
//导入路由模块
const home = require('./home/home')
const admin = require('./admin/admin')
//获取服务对象
const app = express()




app.use('/home', home)
app.use('/admin', admin)


//监听端口
app.listen(3000, () => {
    console.log('服务器启动成功... http://127.0.0.1:3000')
})